CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

include_directories(${COMN_DIR}/include)
include_directories(include)
include_directories(.)

include_directories(${FFMPEG_DIR}/include)

if (MSVC)
include_directories(${THIRD_PARTY}/stdint)
endif()

link_directories(${COMN_DIR}/lib)
link_directories(${FFMPEG_LIBRARY_DIR})

include_directories(${SDL_DIR}/include)
link_directories(${SDL_LIBRARY_DIR})

aux_source_directory(. SOURCES)

add_library(MediaRender SHARED ${SOURCES})

target_link_libraries(MediaRender
	${LIB_PLATFORM}
	debug comnd optimized comn
	${FFMPEG_LIBRARIES}
	${SDL_LIBRARIES}
	)

set_target_properties(MediaRender PROPERTIES LINK_INTERFACE_LIBRARIES "")
set_target_properties(MediaRender PROPERTIES INTERFACE_LINK_LIBRARIES "")


